<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>card4</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    .wrapper{
      position: relative;
      overflow: hidden;
      width: 480px;
      height: 240px;
      margin: 100px auto;
      border-radius: 5px;
    }
    .wrapper img{
      width: 100%;
      height: 100%;
    }
    p:nth-child(2){
      position:absolute;
      top: 50%;
      left: 50%;
      color: #fff;
      font-weight: bold;
      font-size: 23px;
      transform: translate(-50%, -50%);
    }
    p:nth-child(3){
      position:absolute;
      top: calc(50% + 40px);
      width: 100%;
      color: transparent;
      font-size: 23px;
      text-align: center;
    }
    .wrapper:hover img{
      transform: scale(1.2);
    }
    .wrapper:hover P:nth-child(3){
      color: #fff;
      font-size: 14px;
    }
    .wrapper:hover{
      filter: grayscale(100%);
    }
    .wrapper,img,P:nth-child(3){
      transition: all .4s;
    }
  </style>
</head>
<body>
  <div class="wrapper">
    <img src="4.jpg" alt="" />
    <p>Postcards From Italy</p>
    <p>And I will love to see that day</p>
  </div>
</body>
</html>